<?php $this->display("objects/breadcrumbs") ?>

<h2><?php _e($object['title']) ?></h2>

<?php if ($success): ?>
	<p>Thank you for reporting this comment! A moderator will review your report as soon as possible.</p>
	
	<p><a href="<?php echo Gene::makeLink($object) ?>">Return</a></p>
<?php else: ?>
	<?php if ($errormsg): ?>
		<p class="errormessage"><?php _e($errormsg) ?></p>
	<?php endif; ?>

	<?php if ($reported): ?>
		<p><strong>A moderator is still dealing with the report you made at <em><?php echo makeDate($report['report_time']) ?></em>. You may modify or remove your report below.</strong></p>
		
		<form action="<?php echo Gene::makeLink($object) ?>/view/report" method="post">
			<input type="hidden" name="remove" value="1" />
			<input type="submit" value="Remove Report" />
		</form>
		
		<h3>Modify Report</h3>
	<?php endif; ?>
		
	<p>You are reporting the following comment:</p>

	<?php $this->display("objects/discussioncomment/embed", array("object" => $object)); ?>
	
	<p>Use the following form to report this comment to a moderator.</p>
	
	<p>Please don't report comments for trivial reasons or because you disagree with the opinions stated in the comment. This wastes everybody's time.</p>
	
	<form action="<?php echo Gene::makeLink($object) ?>/view/report" method="post">
	<p><strong><label for="complaint">Complaint Type:</label></strong><br />
	<select id="complaint" name="complaint">
	<option value="1"<?php if ($report['report_type'] == 1): ?> selected="selected"<?php endif; ?>>Abusive</option>
	<option value="2"<?php if ($report['report_type'] == 2): ?> selected="selected"<?php endif; ?>>Offensive or Inappropiate</option>
	<option value="3"<?php if ($report['report_type'] == 3): ?> selected="selected"<?php endif; ?>>Language</option>
	<option value="4"<?php if ($report['report_type'] == 4): ?> selected="selected"<?php endif; ?>>Spam</option>
	<option value="5"<?php if ($report['report_type'] == 5): ?> selected="selected"<?php endif; ?>>Off Topic</option>
	<option value="6"<?php if ($report['report_type'] == 6): ?> selected="selected"<?php endif; ?>>Other</option>
	</select>
	</p>
	
	<p><strong><label for="additional">Additional Comments: <em>(Optional)</em></label></strong><br /><textarea id="additional" name="additional" cols="50" rows="5"><?php _e($report['comments']) ?></textarea></p>
	
	<p class="formcontrols"><input type="submit" value="Report Comment" class="btn_focus" /></p>
	</form>	
<?php endif; ?>